package com.demo.service;

import com.alipay.api.AlipayApiException;
import com.demo.dto.AlipayConfig;
import com.demo.dto.TradeVo;

/**
 * @author leiliang
 * @version 1.0
 * @Description
 * @date 2021/1/6 11:42
 */
public interface AliPayService {

    AlipayConfig find();

    /**
     * PC支付请求
     * @param aliPay
     * @param trade
     * @return
     */
    String toPayAsPc(AlipayConfig aliPay, TradeVo trade) throws Exception;

    /**
     * WEB支付请求
     * @param alipay
     * @param trade
     * @return
     */
    String toPayAsWeb(AlipayConfig alipay, TradeVo trade) throws Exception;
}
